/**
 * Created by pankajmishra on 08/12/14.
 */
define(['jquery', 'module/common/utils'], function($, utils){


    function Form(formDom){

        this.getFormParam = function(){
            var paramVal = {};
            formDom.find('input').each(function(index, inputDom){

                if(!utils.isStrEmpty($(inputDom).val()))
                {
                    paramVal[$(inputDom).attr('name')] = $(inputDom).val().trim();
                }
            });
            return paramVal;
        }
    }
    // get form value.


    return Form;

});